#ifndef FRIENDADDFRIENDREQUEST_H
#define FRIENDADDFRIENDREQUEST_H

#include "network/networkgetjsonrequest.h"
#include "network/networkjsonresponse.h"
#include "friend/friendaddfriendresponse.h"

// Qt includes
#include <QObject>
#include <QUrl>


namespace Friend {

class AddFriendRequest:  public Network::GetJSONRequest
{
    Q_OBJECT
public:
    explicit AddFriendRequest(const QString &friendName,
                              const QString &message,
                              const QString &sessionKey);
    ~AddFriendRequest();

private:
    Network::JSONResponse &jsonResponse();

public:
    const Network::JSONResponse &jsonResponse() const;
    QUrl url() const;

private:
    QString m_friendAccount;
    QString m_message;
    QString m_sessionKey;
    AddFriendResponse *m_response;
};

} // namespace Friend

#endif // FRIENDADDFRIENDREQUEST_H
